using System.Collections.Generic;
using BSDS.Commands.Commands.Implementation;

namespace BSDS.Commands.Commands.Creation.Implementation
{
    public class HelpCommandCreator : CommandCreatorBase
    {
        protected override bool Supports(Dictionary<string, string> parameters)
        {
            return parameters.Count == 1 && parameters.ContainsKey("help") && parameters["help"] == null;
        }

        protected override ICommand Create(Dictionary<string, string> parameters)
        {
            return new HelpCommand();
        }
    }
}